<?php

use Carbon\Carbon;
use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('users')->insert([
            [
                'name'       => 'luohao',
                'email'      => '474664638@qq.com',
                'password'   => bcrypt('qqqqqq'),
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now()
            ], [
                'name'       => 'rovast',
                'email'      => 'rovast@163.com',
                'password'   => bcrypt('qqqqqq'),
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now()
            ]
        ]);

        factory(\App\User::class,20)->create();
    }
}
